#include "List.h"


void TestList1()
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);

	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);

	LTPushFront(plist, 1);
	LTPushFront(plist, 2);
	LTPushFront(plist, 3);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPrint(plist);

	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);

	LTNode* pos1 = LTFind(plist, 3);
	LTInsert(pos1, 66);
	LTPrint(plist);

	LTNode* pos2 = LTFind(plist, 2);
	LTErase(pos2);
	pos2 = NULL;
	LTPrint(plist);

	//LTDestroy(plist);
	//LTPrint(plist);
	//plist = NULL;
}

int main()
{
	TestList1();
	return 0;
}